package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2019-01-11 10:29:34.772
 */
@Entity
@Table(name = "app_version_file",catalog = "userdb")
public class AppVersionFile implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "app_version_file";

    /**文件Id */
	public static final String ALIAS_FILE_ID = "file_id";
    /**文件名 */
	public static final String ALIAS_FILE_NAME = "file_name";
    /**文件大小 */
	public static final String ALIAS_FILE_SIZE = "file_size";
    /**存储路径 */
	public static final String ALIAS_FILE_URL = "file_url";
    /**启用状态 1 已启用 2 未启用 */
	public static final String ALIAS_FILE_STATE = "file_state";
    /**版本编码 */
	public static final String ALIAS_VERSION_CODE = "version_code";
    /**版本ID */
	public static final String ALIAS_VERSION_NAME = "version_name";
    /**包ID */
	public static final String ALIAS_PKG_NAME = "pkg_name";
    /**上传时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "file_id", unique = true, nullable = false)
    public java.lang.Long fileId;
  
 	@Column(name = "file_name")
    public java.lang.String fileName;
  
 	@Column(name = "file_size")
    public java.lang.Long fileSize;
  
 	@Column(name = "file_url")
    public java.lang.String fileUrl;
  
 	@Column(name = "file_state")
    public java.lang.Long fileState;
  
 	@Column(name = "version_code")
    public java.lang.Long versionCode;
  
 	@Column(name = "version_name")
    public java.lang.String versionName;
  
 	@Column(name = "pkg_name")
    public java.lang.String pkgName;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  





	public java.lang.Long getFileId() {
		return this.fileId;
	}
	
	public void setFileId(java.lang.Long value) {
		this.fileId = value;
	}

	public java.lang.String getFileName() {
		return this.fileName;
	}
	
	public void setFileName(java.lang.String value) {
		this.fileName = value;
	}

	public java.lang.Long getFileSize() {
		return this.fileSize;
	}
	
	public void setFileSize(java.lang.Long value) {
		this.fileSize = value;
	}

	public java.lang.String getFileUrl() {
		return this.fileUrl;
	}
	
	public void setFileUrl(java.lang.String value) {
		this.fileUrl = value;
	}

	public java.lang.Long getFileState() {
		return this.fileState;
	}
	
	public void setFileState(java.lang.Long value) {
		this.fileState = value;
	}

	public java.lang.Long getVersionCode() {
		return this.versionCode;
	}
	
	public void setVersionCode(java.lang.Long value) {
		this.versionCode = value;
	}

	public java.lang.String getVersionName() {
		return this.versionName;
	}
	
	public void setVersionName(java.lang.String value) {
		this.versionName = value;
	}

	public java.lang.String getPkgName() {
		return this.pkgName;
	}
	
	public void setPkgName(java.lang.String value) {
		this.pkgName = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}


	
	public AppVersionFile() {
	}
	
	public AppVersionFile(boolean qryflag) {
	    if(qryflag){
	    		this.fileId = null;
				this.fileName = null;
				this.fileSize = null;
				this.fileUrl = null;
				this.fileState = null;
				this.versionCode = null;
				this.versionName = null;
				this.pkgName = null;
				this.createTime = null;
				this.state = null;
			    }
	}


	public AppVersionFile(
	    java.lang.Long inFileId,
	    java.lang.String inFileName,
	    java.lang.Long inFileSize,
	    java.lang.String inFileUrl,
	    java.lang.Long inFileState,
	    java.lang.Long inVersionCode,
	    java.lang.String inVersionName,
	    java.lang.String inPkgName,
	    java.util.Date inCreateTime,
		java.lang.Long inState
	 ) {
		super();
				this.fileId = inFileId;
				this.fileName = inFileName;
				this.fileSize = inFileSize;
				this.fileUrl = inFileUrl;
				this.fileState = inFileState;
				this.versionCode = inVersionCode;
				this.versionName = inVersionName;
				this.pkgName = inPkgName;
				this.createTime = inCreateTime;
				this.state = inState;
			}





}

